 <link href="<?= STATICURL; ?>css/bootstrap.min.css" rel="stylesheet" />
    <link id="bootstrap-rtl-link" href="" rel="stylesheet" />
    <link href="<?= STATICURL; ?>css/font-awesome.min.css" rel="stylesheet" />
    <!--Fonts-->
    <!--Beyond styles-->
    <link id="beyond-link" href="<?= STATICURL; ?>css/beyond.min.css" rel="stylesheet" type="text/css" />
    <link id="skin-link" href="" rel="stylesheet" type="text/css" />
    <div class="page-content">
        <div class="page-body">
            <div id="horizontal-form">
                    <form class="form-horizontal" role="form">
                        <div class="row">
                            <div class="col-md-7 pull-left">
								<div >发送快递：</div>
                                <select class="expressName">
                                    <option  value="">--请选择发送快递--</option>
                                    <option <?php if($questionInfo['questionType'] == 1):?>selected="selected"<?php endif?>  value="1">圆通快递</option>
                                    <option <?php if($questionInfo['questionType'] == 2):?>selected="selected"<?php endif?> value="2">申通快递</option>
                                    <option <?php if($questionInfo['questionType'] == 3):?>selected="selected"<?php endif?> value="3">中通快递</option>
                                    <option <?php if($questionInfo['questionType'] == 3):?>selected="selected"<?php endif?> value="3">顺丰快递</option>
                                    <option <?php if($questionInfo['questionType'] == 3):?>selected="selected"<?php endif?> value="3">韵达快递</option>

                                </select>
                            </div>
                            <div class="col-md-7 pull-left">
                                快递单号：
                                <input class="form-control expressNo" style="width: 300px;" value="<?=$questionInfo['questionTitle']?>" type="text" placeholder="请输入快递单号">
                                <div class="horizontal-space"></div>
                            </div>
                        </div>
                        <br />
                        <div style="clear:both;">
                            <span id="js_submit" class="btn btn-default">提交</span>
                        </div>
                    </form>
                </div>
        </div>
        <input type="hidden" id="idpalce" value="<?php echo $AdInfo['id']?>" />
<script src="<?= STATICURL; ?>js/jquery-2.0.3.min.js"></script>
<script src="<?php echo STATICURL; ?>js/bootstrap.min.js"></script>
<script src="<?php echo STATICURL; ?>layer/layer.js"></script>
<?php require_once ADMINVIEWPATH.'admin_footer.php'; ?>
<script>
    $(document).ready(function(){
        $("#js_submit").on("click",function(){
            var id = "<?=$id?>";
            var expressName = $(".expressName").find("option:selected").text();
			var expressNo = $(".expressNo").val();
		
           
            if (expressName == ""){
                layer.msg("请选择发送快递");
                return;
            }
            if (expressNo == ""){
                layer.msg("请填写快递单号");
                return;
            }
           
            $.post("/luckydog/goods/do_editExpress", {id:id,expressName:expressName,expressNo:expressNo}, function(data) {
                if (data) {
                    layer.msg("成功");
                    window.parent.location.reload();
                }else{
                    layer.msg("失败");
                }
            });
        });     
    });

</script>


